"""lib_management_system URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from app import views

urlpatterns = [
    # path('admin/', admin.site.urls),
    path('user/home/', views.user_home, name='user_home'),
    path('admin/home/', views.admin_home, name='admin_home'),
    path('login/', views.login, name='login'),
    path('register/', views.register, name='register'),
    path('logout/', views.logout, name='logout'),
    path('add/num', views.add_num, name='add_num'),
    path('del/book', views.del_book, name='del_book'),
    path('search/book', views.search_book, name='search_book'),
    path('add/book', views.add_book, name='add_book'),
    path('user_search/book', views.user_search_book, name='user_search_book'),
    path('borrow/book', views.borrow_book, name='borrow_book'),
    path('add/num/', views.add_num, name='add_num'),
    path('del/book/', views.del_book, name='del_book'),
    path('search/book/', views.search_book, name='search_book'),
    path('add/book/', views.add_book, name='add_book'),
    path('admin/toAdmin/', views.admin_toAdmin, name='admin_toAdmin'),
    path('del/admin/', views.del_admin, name='del_admin'),
    path('add/admin/', views.add_admin, name='add_admin'),
    path('manage/user/', views.manage_user, name='manage_user'),
    path('del/user/', views.del_user, name='del_user'),
    path('show/user/record/', views.show_userRecord, name='show_userRecord'),
    path('admin/detail/', views.admin_detail, name='admin_detail'),
    path('myborrow_book/record/', views.my_borrow_book, name='my_borrow_book'),
    path('return/book/', views.return_book, name='return_book'),
    path('edit/admin/password', views.edit_admin_password, name='edit_admin_password'),
    path('show/returnbook/records', views.show_return_book, name='show_return_book'),
    path('edit/user/password/', views.edit_user_password, name='edit_user_password'),
    path('user/detail/', views.user_detail, name='user_detail'),

]
